-- GENERATED SPELL FOR [Forgemaster Morug] --


function spell0_20800(pUnit, Event) --@Chainsaw Blade,n/a--
pUnit:FullCastSpellOnTarget(36228,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_20800', 500, 1)
end

function spell1_20800(pUnit, Event) --@Slime Spray,n/a--
pUnit:FullCastSpellOnTarget(34261,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_20800', 12000, 1)
end

function Sorts_20800(pUnit, Event)
local choix_sorts_20800 = math.random(0, 1)
if choix_sorts_20800 == 0 then
pUnit:RegisterEvent('spell0_20800', 1, 1)
end
if choix_sorts_20800 == 1 then
pUnit:RegisterEvent('spell1_20800', 1, 1)
end
end

function mob20800_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_20800', math.random(1500, 3000), 1)
end

function mob20800_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob20800_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob20800_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(20800, 1, 'mob20800_Action')
RegisterUnitEvent(20800, 2, 'mob20800_Leave')
RegisterUnitEvent(20800, 3, 'mob20800_Kill')
RegisterUnitEvent(20800, 4, 'mob20800_Die')
